package com.fifth.common.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 第五组
 * @since 2022-09-05
 */
@TableName("b_business_permission")
@ApiModel(value = "BusinessPermission对象", description = "")
public class BusinessPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商家权限id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("权限名")
    private String pname;

    @ApiModelProperty("权限路径")
    private String url;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("状态 0 正常 1 禁用")
    private Integer state;

    @ApiModelProperty("路由路径")
    private String path;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    @Override
    public String toString() {
        return "BusinessPermission{" +
            "id=" + id +
            ", pname=" + pname +
            ", url=" + url +
            ", icon=" + icon +
            ", state=" + state +
            ", path=" + path +
        "}";
    }
}
